HipGamepad

Engine task: Send gamepad connect and disconnect events Poll every connected gamepad every frame Should always return a neutral state for every disconnected gamepad

Game task: Check gamepad count Decide what will do with connected gamepads

Constructors

this
this(IHipGamepadImpl impl)
Undocumented in source.

Members

Functions

areButtonsJustPressed
bool areButtonsJustPressed(HipGamepadButton[] btns)
Undocumented in source. Be warned that the author may not have intended to support it.
areButtonsJustReleased
bool areButtonsJustReleased(HipGamepadButton[] btns)
Undocumented in source. Be warned that the author may not have intended to support it.
areButtonsPressed
bool areButtonsPressed(HipGamepadButton[] btns)
Undocumented in source. Be warned that the author may not have intended to support it.
getAnalogState
Vector3 getAnalogState(HipGamepadAnalogs analog)
Undocumented in source. Be warned that the author may not have intended to support it.
getBatteryStatus
float getBatteryStatus()
Undocumented in source. Be warned that the author may not have intended to support it.
getId
ubyte getId()
Undocumented in source. Be warned that the author may not have intended to support it.
isButtonJustPressed
bool isButtonJustPressed(HipGamepadButton btn)
Undocumented in source. Be warned that the author may not have intended to support it.
isButtonJustReleased
bool isButtonJustReleased(HipGamepadButton btn)
Undocumented in source. Be warned that the author may not have intended to support it.
isButtonPressed
bool isButtonPressed(HipGamepadButton btn)
Undocumented in source. Be warned that the author may not have intended to support it.
isWireless
bool isWireless()
Undocumented in source. Be warned that the author may not have intended to support it.
poll
void poll(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.
postUpdate
void postUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
setAnalog
void setAnalog(HipGamepadAnalogs analog, float[3] value)
Undocumented in source. Be warned that the author may not have intended to support it.
setButtonPressed
void setButtonPressed(HipGamepadButton btn, bool pressed)
Undocumented in source. Be warned that the author may not have intended to support it.
setVibrating
bool setVibrating(float time, double vibrationPower)
Undocumented in source. Be warned that the author may not have intended to support it.
setVibrating
bool setVibrating(float time, double leftMotor, double rightMotor, double leftTrigger, double rightTrigger)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

instanceCount
ubyte instanceCount;
Undocumented in source.

Variables

buttons
HipButtonMetadata[HipGamepadButton.count] buttons;
Undocumented in source.
id
ubyte id;
Undocumented in source.
leftAnalog
Vector3 leftAnalog;
Undocumented in source.
leftTrigger
float leftTrigger;
Undocumented in source.
rightAnalog
Vector3 rightAnalog;
Undocumented in source.
rightTrigger
float rightTrigger;
Undocumented in source.
status
HipGamepadBatteryStatus status;
Undocumented in source.
vibrationAccumulator
float vibrationAccumulator;
Undocumented in source.

Meta